{% extends "base.html" %}
{% block title %}判断文章类型{% endblock %}
{% block content %}
<div class="row">
{%if result%}
<div class="well">
    <p>标签</p>
    {% for tag in result.tags %}
        <span class="bg-info">{{ tag }}</span>
    {% endfor %}

    <p>关键词</p>
    {% for keyword in result.keywords %}
        <span class="bg-info">{{ keyword }}</span>
    {% endfor %}
</div>
{%endif%}
    <form method="post" action="/news_analyse" role="form" class="form">

        <div class="form-group">
            <label for="content" class="col-md-2 control-label">文章标题</label>
            <div class="col-md-10">
                <input class="form-control" id="title" name="title"  type="text" value="{{title}}"/>
            </div>
        </div>


        <div class="form-group">
            <label for="content" class="col-md-2 control-label">文章内容</label>
            <div class="col-md-10">
                <textarea class="form-control" id="content" name="content" cols="8" rows="15">{{content}} </textarea>
            </div>
        </div>

        <div class="form-group">
            <label for="content" class="col-md-2 control-label"></label>
            <div class="col-md-4">
                <input type="submit" class="btn btn-primary" />
            </div>
        </div>

    </form>
</div>
{% endblock%}
